package com.efast.dmom.equipment.dao.maintain;

import com.efast.dmom.equipment.bean.EquipCheckingListBean;
import com.efast.dmom.equipment.bean.EquipMaintainListBean;
import com.efast.dmom.equipment.bean.EquipmentCheckingQueryBean;
import com.efast.dmom.equipment.bean.EquipmentMaintainQueryBean;
import com.efast.dmom.equipment.entity.EquipCheckingItems;
import com.efast.dmom.equipment.entity.EquipMaintainItems;
import feign.Param;

import java.util.List;

/**
 *
 * 保养DAO接口
 * @Author  zhangchenghao
 * @Date 2019-08-15
 */
public interface EquipMaintainDao {
	
	void deleteMaintainRules(List<Integer> ids);


	/**
	 * 根据保养规则的id查询保养项信息
	 * @param list
	 * @return
	 */
	public List<EquipMaintainItems> queryMaintainOrderItemsInfoByRuleIds(@Param(value = "list") List<EquipMaintainItems> list);

	/**
	 *保存保养项
	 * @param list
	 */
	public void saveMaintainOrderItems(@Param(value = "list") List<EquipMaintainItems> list);

	/**
	 * 更新保养项
	 * @param list
	 */
	public void updateMaintainOrderItems(@Param(value = "list") List<EquipMaintainItems> list);


	/**
	 * 删除保养项
	 * @param orderId
	 */
	public void deleteMaintainOrderItems(@Param(value = "orderId") Integer orderId);

	/**
	 * 分页查询 维修单据列表（包含当前用户具备的单据操作handle）
	 * @param queryBean
	 * @return
	 */
	public List<EquipMaintainListBean> queryMaintainOrderByPage(EquipmentMaintainQueryBean queryBean);

	public int countMaintainOrder(EquipmentMaintainQueryBean queryBean);
}
